home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / tool / artemis1 / src / pen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-19  |  702 b   |  35 lines

  1. /*
  2.     pen.h
  3. */
  4.  
  5. typedef enum {
  6.     PENTYPE_DOT,
  7.     PENTYPE_CIRCLE,
  8.     PENTYPE_RECT,
  9.     PENTYPE_ANY
  10. } pentype_t;
  11.  
  12. typedef struct _pen_t {
  13.     struct _pen_t    *next;
  14.     short int         *pattern;
  15.     pentype_t        type;
  16.     struct _pen_t    *originalpen;
  17.     int                gray;
  18.     bool            centergray;
  19. } pen_t;
  20.  
  21. int        pen_init(void);
  22. void    pen_end(void);
  23.  
  24. pen_t    *getcurpen(void), *getcurpen_0(void);
  25. int        getmixrate(void);
  26. void    putPenSample(int x,int y, pen_t *pen);
  27. void    loadPenData(void);
  28. void    pen_display(pen_t *pp, int x, int y);
  29.  
  30. bool    pen_isdottype(pen_t *p);
  31. void pen_fill(pen_t *p,
  32.               void func(int x0,int y0,int dx,int xlen,int dy,
  33.                                 short *graymap)!,
  34.               const int x, const int y, const bool clip);
  35.